require "pubenum"


HBSLActionType = {
	ACTION_TYPE_UNKNOWN    = 0,
	ACTION_TYPE_QHB		   = 1, -- 抢红包
	ACTION_TYPE_SQML	   = 2, -- 申请埋雷
    ACTION_TYPE_CANCELHB   = 3, -- 取消埋雷
}



HBSLTableType = {
    TABLE_TYPE_UNKNOWN = 0,
    TABLE_TYPE_ZUANSI = 1,     ---自建钻石桌
}


HBSLActionTime = {
    ACTION_TIME_QHB = 8,	--抢红包 6秒
}

HBSLPlayGameType = {
    GAME_TYPE_COMMON = 1,   ---普通模式
    GMAE_TYPE_UNLIMIT = 2,  ---无限模式
}

HBSLMAXWantNum = 5

HBSLTableState = {
    TABLE_STATE_UNKNOWN                         = 100,
    TABLE_STATE_GAME_START                      = 101,                      -----创建好牌桌可以开始游戏
    TABLE_STATE_GAME_START_OVER 				= 102,
    TABLE_STATE_ONE_GAME_START                  = 103,                      -----一局游戏开始
    TABLE_STATE_ONE_GAME_START_OVER             = 104,
    TABLE_STATE_WAIT_PLAYER_BURY_LANDMINE       = 105,                      -----等待玩家埋雷(有玩家埋雷游戏才开始)
    TABLE_STATE_PLAYER_QHB                      = 106,                      -----有玩家埋雷(通知玩家抢红包)
    TABLE_STATE_WAIT_PLAYER_QHB                 = 107,                      -----等待玩家抢红包
    TABLE_STATE_ONE_GAME_END                    = 108,                      -----红包抢完或倒计时结束，结算
    TABLE_STATE_ONE_GAME_END_OVER               = 109,                      -----等待一局游戏结束
    TABLE_STATE_ONE_GAME_END_AFTER              = 110,
    TABLE_STATE_ONE_GAME_END_AFTER_OVER			= 111,
}

--座位状态
HBSLSeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,           --没有玩家
	SEAT_STATE_WAIT_READY = 2,          --等待准备
	SEAT_STATE_WAIT_START = 3,          --等待开局
	SEAT_STATE_PLAYING  = 4,            --正在游戏中
    SEAT_STATE_QIANGZHUANG = 5,         --抢庄
    SEAT_STATE_QIANGZHUANG_OVER = 6,    ---抢庄完成
	SEAT_STATE_XIAZHU = 7,              --下注
	SEAT_STATE_XIAZHU_OVER = 8,         ---下注完成
    SEAT_STATE_KAIPAI = 9,              --开牌
    SEAT_STATE_KAIPAI_OVER = 10,        --开牌结束
	SEAT_STATE_TUOGUAN = 11,            ---托管状态
	SEAT_STATE_DISCONNECTED = 12,       ---断线状态
    SEAT_STATE_WAIT_NEXT_GAME = 13,     ---等待下一局游戏开始
}

--玩家站起原因
HBSLStandupReason = {
	STANDUP_REASON_UNKNOW = 0,
	STANDUP_REASON_ONSTANDUP = 1,                       --玩家主动站起
	STANDUP_REASON_READYTIMEOUT_STANDUP = 2,            --准备超时站起
	STANDUP_REASON_DELETE_TABLE = 3,                    --桌子被删除,玩家站起
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND = 4,         --友豆低于房间设定值
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND_POCHAN = 5,  ---友豆低于'破产'设定值
	STANDUP_REASON_NITENOUGH_ROOM_COIN = 6,             ---低于房间最小值
	STANDUP_REASON_PLAYEROFFLINE = 7,                   -----玩家断线游戏结束
	STANDUP_REASON_DISCONNECTED_NO_READY = 8, 	        ----玩家准备时断线判断为离开房间
	STANDUP_REASON_GM_DELETETABLE = 9, 	                ----gm删除桌子
	STANDUP_REASON_DISCONNECTED = 10,                   ---断线重连
    STANDUP_REASON_CANCEL_TABLE = 11,                   ---解散桌子
    STANDUP_REASON_EMPTY_TABLE  = 12,
    STANDUP_REASON_TABLE_END = 13,
    STANDUP_REASON_CLEAR_PLAYER_STATE = 14,             ---清除状态
    STANDUP_REASON_TABLE_MATCH  = 15,					---匹配模式玩家离开,没准备的玩家离桌                      
}

HBSLLAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
    GREEN = "<color=#008b00>%s</c>",
}

HBSLSendHorseMap = {
    GET_MONEY_MIN = 5000000,       ---大于等于5w元发送跑马灯，相当于不播报
}

HBSLBurySortType = {
    BURY_SORT_TYPE_TIME = 1,        ----按照时间排序
    BURY_SORT_TYPE_MONEY = 2,       ----按照金额排序
}

HBSLRobotBuryMoney = {
    BURY_MIN_MONEY = 10,
    BURY_MAX_MONEY = 50,
}

HBSLBuryHBNums = {
    HB_NUM_SEVEN    = 7,
    HB_NUM_TEN      = 10,
}



